﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpFileDown.aspx.cs" Inherits="CURE.Experiment.ExpFileDown" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script type="text/javascript">
       
        function down(obj,path) {
            var str = "/Handler/ExpDownHandler.ashx?path="+path;
            obj.href = str;
            return true;
            //$.ajax({
            //    url: "/Handler/ExpDownHandler.ashx?",
            //    type: "post",
            //    data:{path:path},
            //    success: function (data) {
            //         //var ss = document.getElementById("filetable").innerHTML = data;
            //         //$("#filetable").html(data);

            //         // $("#filetable").html(data);

            //     }
            // })
        }

    </script>
</head>
<body>
    <form id="pagerForm" method="post" action="Experiment/ExpFileDown.aspx">
        
    </form>
    
    <div class="pageContent" style="margin-top: -2px;">
        <div class="panelBar">
            <%--<ul class="toolBar">
                <li><a class="add" width="1150" height="650" rel="AddUser" href="Harmful/LedgerAdd.aspx?action=add"
                    target="dialog"><span>添加F卡</span></a></li>
            </ul>--%>
        </div>
        <div>
            <table class="table" width="100%" layouth="83">
                <thead>
                    <tr>
                        <th style="text-align: center;">文件名</th>
                        <th style="text-align: center;">附件</th>
                        <%--<th style="text-align: center;">审核不通过原因</th>--%>
                        <th style="text-align: center;">操作</th>
                        
                        <%--<th style="text-align: center;">操作</th>--%>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater runat="server" ID="reptMaster">
                        <ItemTemplate>
                            <tr>
                                <td style="text-align: center;"><%#CURE.Common.StringTool.GetFileName(Eval("PATH").ToString()) %></td>
                                <td style="text-align: center;"><a target="_blank" href="<%#Eval("PATH")%>"><img src="<%#Eval("PATH")%>" style="width:50px;height:50px;"></a></td>
                                <td style="text-align: center;color:blue;"><a id="expdown" href="/Handler/ExpDownHandler.ashx?path=<%#Eval("PATH")%>" >下载附件</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
       
    </div>
</body>
</html>
